package com.woniuxy.joylife.manager.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.woniuxy.common.validate.AddGroup;
import com.woniuxy.common.validate.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 物业信息
 * 
 * @author renxiang
 * @email 981405195@qq.com
 * @date 2020-05-14 10:57:33
 */
@Data
@TableName("manager_manager")
public class ManagerEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 物业编号
	 */
	@TableId
	private String managerId;
	/**
	 * 物业名
	 */
	@NotBlank(groups = {AddGroup.class,UpdateGroup.class})
	private String name;
	/**
	 * 物业证书
	 */
	@NotBlank(groups = {AddGroup.class,UpdateGroup.class})
	private String cridential;
	/**
	 * 物业电话
	 */
	@NotBlank(groups = {AddGroup.class,UpdateGroup.class})
	private String phone;
	/**
	 * 状态
	 */
	@TableLogic
	private Integer state;
	/**
	 * 创建时间
	 */
	private Date createtime;
	/**
	 * 更新时间
	 */
	private Date updatetime;

}
